<template>
  <div class="tree">
    <panel>
      <h1 slot="header">地址信息</h1>
      <tree :treeData="treeData" :editable="true" :actionUrls="actionUrls"/>
    </panel>
  </div>
</template>

<script>
  import huodhVuePlugins from 'huodh-vue-plugins'
  import {commonUrls} from '../../common'
  let panel = huodhVuePlugins.panel
  let tree = huodhVuePlugins.tree
  export default {
    name: 'tree-example',
    data () {
      return {
        treeData: commonUrls.addressTreeInit,
        actionUrls: {
          addUrl: commonUrls.addressTreeAdd,
          deleteUrl: commonUrls.addressTreeDel,
          editUrl: commonUrls.addressTreeUpdate
        }
      }
    },
    components: {
      panel, tree
    },
    methods: {}
  }
</script>

<style scoped>

</style>
